package com.googlecode.grs.core;

import com.googlecode.grs.deploy.Main;

public abstract class GRTRobot {

	// private static final class Singleton {
	// public static final GRTRobot INSTANCE = new GRTRobot();
	// }
	//
	// public static final GRTRobot getInstance() {
	// return Singleton.INSTANCE;
	// }

	public static GRTRobot getInstance() {
		return instance;
	}

	private static GRTRobot instance;

	protected GRTRobot() {
		instance = this;
	}

	protected abstract void robotInit();

	protected void log(String message) {
		// logger.write("GRTRobot", message);
		System.out.println("[GRTRobot]" + message);
	}

	public static void main(String[] args) {
		new Main().robotInit();
	}
}
